package com.woniuxy.usercoachassemble.commons;

import java.util.Date;

/**
 * ClassName: DateUilt
 * Description: 日期工具类
 * date: 2020/7/9 11:40
 *
 * @author woniuxy
 */
public class DateUtils {

    /**
     * @description:TODO(获取当前日期半小时后的时刻)
     * @param
     * @return:  java.util.Date
     * @author: Fy浪迹、
     * @date: 2020/7/9 11:45
     */
    public static Date getNowDateAfteranhalf(){
        long millisecond = 30 * 60 * 1000;
        return getNowDateAfterMillisecond(millisecond);

    }

    /**
     * @description:TODO(获取当前日期n毫秒后的时刻)
     * @param millisecond 毫秒值
     * @return:  java.util.Date
     * @author: Fy浪迹、
     * @date: 2020/7/9 11:44
     */
    public static Date getNowDateAfterMillisecond(long millisecond){
        long currentTime = System.currentTimeMillis() ;
        currentTime += millisecond;
        Date date=new Date(currentTime);
        return date;
    }



}
